package com.example.haojiutao.model.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商品实体类
 * @Author: ma_lihong
 * @CreateTime: 2024/1/16 16:53
 */
@Data
public class Goods extends BaseEntity implements Serializable {
    private Integer goodsId;
    private String goodsType;
    private Integer userId;
    private String goodsName;
    private String details;  //商品描述
    private String sellerName; //卖家
    private Double price;  //商品价格
    private String brand; //品牌
    private String quality; //商品品质，新旧程度
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date listTime;//上架时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date delistingTime;//下架时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间
    private String picture;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;//更新时间
    private Integer delFlag;//删除标志，0为正常1为已删除
    private Integer listFlag;//上架标志，0为正常1为已下架
}
